package com.nidu.demo.role.convertor;

import com.nidu.demo.base.BaseConvertor;
import com.nidu.demo.convertor.MapStructConfig;
import com.nidu.demo.role.dto.RoleMenuCO;
import com.nidu.demo.role.model.RoleMenu;
import com.nidu.demo.role.mapper.dataobject.RoleMenuDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(config = MapStructConfig.class)
public interface RoleMenuConvertor extends BaseConvertor<RoleMenuDO, RoleMenu, RoleMenuCO> {
    
    @Override
    @Mapping(target = "createTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "createBy", ignore = true)
    @Mapping(target = "updateBy", ignore = true)
    RoleMenuDO toDataObject(RoleMenu roleMenu);
} 